package com.dnjn.happiness.emo.api.model;

import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import javax.validation.constraints.Min;
import java.math.BigDecimal;

/**
 * <p>
 * 风控
 * </p>
 *
 * @author Amber
 * @since 2023-10-09
 */
public class RiskVO extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * PK
     */

    private Long riskId;

    private String label;


    private String rtype;

    /**
     * Y-N
     */
    private String selected;

    /**
     * 权重
     */
    @Min(value = 0, message = "weight 权重不能小于0")
    private BigDecimal weight;

    private String tableName;
    private String fkColumnName;

    /**
     * 是否删除|0-否 1-是|valid
     */
    private String deleted;

    public Long getRiskId() {
        return riskId;
    }

    public void setRiskId(Long riskId) {
        this.riskId = riskId;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getRtype() {
        return rtype;
    }

    public void setRtype(String rtype) {
        this.rtype = rtype;
    }

    public String getSelected() {
        return selected;
    }

    public void setSelected(String selected) {
        this.selected = selected;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getFkColumnName() {
        return fkColumnName;
    }

    public void setFkColumnName(String fkColumnName) {
        this.fkColumnName = fkColumnName;
    }

    public String getDeleted() {
        return deleted;
    }

    public void setDeleted(String deleted) {
        this.deleted = deleted;
    }

    public RiskVO() {
    }

    public RiskVO(Long riskId, String label, String rtype, String selected, BigDecimal weight, String tableName, String fkColumnName, String deleted) {
        this.riskId = riskId;
        this.label = label;
        this.rtype = rtype;
        this.selected = selected;
        this.weight = weight;
        this.tableName = tableName;
        this.fkColumnName = fkColumnName;
        this.deleted = deleted;
    }
}
